<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
</head>

<body>

    <table border="1" width="100%" cellpadding="20" cellspacing="20">
        <tr align="center">
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
        </tr>

        <tr align="center">
            <td>张三</td>
            <td>18</td>
            <td>男</td>
        </tr>

        <tr align="center">
            <td align="left">张三</td>
            <td>18</td>
            <td>男</td>
        </tr>
    </table>


    <hr color="yellow">


    <!-- table>tr*4*>td*4 快速构建一个4行4列的表格 -->
    <table border="1" width="100%" cellpadding="0" cellspacing="0">
        <tr align="center">
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
        </tr>
        <tr align="center">
            <td>001</td>
            <td>杨幂</td>
            <td>18</td>
            <td>女</td>
        </tr>
        <tr align="center">
            <td>002</td>
            <td>轩轩</td>
            <td>20</td>
            <td>男</td>
        </tr>
        <tr align="center">
            <td>003</td>
            <td>艺艺</td>
            <td>30</td>
            <td>男</td>
        </tr>
    </table>


</body>

</html>